/*
 *	DjoltTemplate.h
 *
 *	David Janes
 *	Discover Anywhere Mobile
 *	March 2010
 *
 *	Copyright 2010 Discover Anywhere Mobile
 *
 *	Purpose:
 *	This is the only class that the end-user programmer
 *	needs to see. Initialize with a template, then render:
 *	witha dictionary
 *
 *	Programmers:
 *	You'll need to add some fairly obvious code to DjoltTemplate.m
 *	if you plan to add more {% xxx %} type expressions
 */

#import <Foundation/Foundation.h>

@class RKEnumerator;
@class DjoltNode;

@interface DjoltTemplate : NSObject
{
	NSString*		template_str;
	RKEnumerator*	djolt_e;
	DjoltNode*		node;
	u_long			position;
	BOOL			in_block_comment;
}

- (id) initWithTemplate:(NSString*)_template_str;
- (id) initWithTemplateFile:(NSString*)_template_file;
- (NSString*) render:(NSDictionary*)_context;
@end
